#pragma once
#include<iostream>
#include<Windows.h>
#include<random>
using namespace std;

#define N 40
#define Up 1
#define Down 2
#define Left 3
#define Right 4

const int Row = N+2;
const int Col = N+2;

class Snake
{
public:
	pair<int, int> head;
	Snake* next;
	Snake(int x,int y);
	void print();
};

void menu();
void loading();
void instructs();
void map();
void game();
void InitSnake();
void goxy(int x, int y);
void Initfood();
void play();